package com.xoa.dao.equipment;

import com.xoa.model.equipment.EquipCapy;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface EquipCapyMapper {


    /**
    * 创建作者:   刘欢
    * 创建日期:   19:22 2019/7/24
    * 方法介绍:   下拉查询commoncode
    * 参数说明:   * @param parentTypeNo
    * @return     java.util.List<com.xoa.model.equipment.EquipCapy>
    */

    List<EquipCapy> selectCommonCode(Map map);

    EquipCapy selectCommonCodeByTypeNo(@Param( "codeTypeNo") String codeTypeNo,@Param("parentNo") String parentNo);

    List<EquipCapy> selectEquipCapy();

    List<EquipCapy> selectAllEquipCapy(Map map);
    List<EquipCapy> findEquipCapybytypeCode(Map map);
    EquipCapy selctByName(String codeTypeName);
    int countAllEquipment();

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lims_equip_capy
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer capyId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lims_equip_capy
     *
     * @mbggenerated
     */
    int insert(EquipCapy record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lims_equip_capy
     *
     * @mbggenerated
     */
    int insertSelective(EquipCapy record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lims_equip_capy
     *
     * @mbggenerated
     */
    EquipCapy selectByPrimaryKey(Integer capyId);


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lims_equip_capy
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(EquipCapy record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lims_equip_capy
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(EquipCapy record);

    int updateStatusByPrimaryKey(int capyId);

    List<EquipCapy> findEquipCapyBaMap(Map map);
    EquipCapy selCapyIdAndTypeCode(Map map);

}